package ua.races.dom.analyzerDirector.decoratedAnalyzer;

import ua.races.dom.analyzerDirector.BetDocumentAnalyzer;
import org.w3c.dom.Element;
import ua.races.dom.analyzerDirector.BetDocumentAnalyzer;
import ua.races.vo.Bet;

import java.util.ArrayList;
import java.util.List;

public class DecoratedBetDocumentAnalyzer extends BetDocumentAnalyzer {

    private List<Bet> bets = new ArrayList<Bet>();
    @Override
    public List<Bet> getEntities() {
        return bets;
    }

    @Override
     public void buildList(Element root) {
        super.buildList(root);
        bets.addAll(entities);
    }
}
